<?php

namespace application\model;

use fastphp\Model;

/**
 * Article模型
 */
class Article extends Model
{
    /**
     * 表名
     * @var string
     */
    protected string $_table = 'article';

    /**
     * 验证规则
     * @var array
     */
    protected array $_rules = [
        'title' => 'required|string',
        'content' => 'required|string',
        'author' => 'required|string'
    ];
}